

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, WXNumberAnimationOption) {
    WXNumberAnimationOptionEaseInOut,
    WXNumberAnimationOptionEaseIn,
    WXNumberAnimationOptionEaseOut,
    WXNumberAnimationOptionLinear,
    WXNumberAnimationOptionEaseInBounce,
    WXNumberAnimationOptionEaseOutBounce
};

typedef NSString* (^UICountingLabelFormatBlock)(CGFloat value);
typedef NSAttributedString* (^UICountingLabelAttributedFormatBlock)(CGFloat value);

@interface WXNumberAnimationManager : NSObject

-(void)countFromValue:(CGFloat)fromValue
              toValue:(CGFloat)toValue
        duration:(NSTimeInterval)duration
               option:(WXNumberAnimationOption)option
             curValue:(void(^)(CGFloat value))curValue
      completion:(void(^)(BOOL finished))completion;

- (CGFloat)currentValue;


@end

